package com.suqiu.qqrobot.enums;

import lombok.Getter;

/**
 * AI类型 open ai，青元，...
 */
@Getter
public enum AiTypeEnum {

    QING_YUAN("QING_YUAN", "三岁小儿"),
    OPEN_AI_DAVINCI("OPEN_AI_DAVINCI", "达芬奇"),
    OPEN_AI_TURBO("OPEN_AI_TURBO", "智力超群"),
    OPEN_AI_IMAGE("OPEN_AI_IMAGE","生成图片");

    final private String tagName;
    final private String value;

    AiTypeEnum(final String tagName, final String value) {
        this.tagName = tagName;
        this.value = value;
    }

    public static AiTypeEnum of(String value) {
        for (AiTypeEnum globalStatus : AiTypeEnum.values()) {
            if (globalStatus.getValue().equals(value)) {
                return globalStatus;
            }
        }
        return null;
    }

}
